export default app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const platform = app.model.define('platform', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    uuid: { type: STRING(36), unique: true },
    contactPerson: STRING(10), // 平台联系人姓名
    contactEmail: STRING(50), // 平台联系人email
    contactTel: STRING(50), // 联系人电话
    description: STRING(255), // 服务平台介绍
    createdAt: DATE,
    updatedAt: DATE,
  });
  return platform;
};
